package com.example.chatgptapplication.exception;

import com.example.chatgptapplication.enums.ResponseStatus;

public class MyException extends RuntimeException{

    private String errorMessage;

    private ResponseStatus responseStatus;

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }


    public ResponseStatus getResponseStatus() {
        return responseStatus;
    }

    public void setResponseStatus(ResponseStatus responseStatus) {
        this.responseStatus = responseStatus;
    }

    public MyException(String message, String errorMessage, ResponseStatus responseStatus) {
        super(message);
        this.errorMessage = errorMessage;
        this.responseStatus = responseStatus;
    }

    public MyException(String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
    }
}
